package nowcoder.fallibility;

/**
 * @author Cheng Jun
 * Description: i++ 和 ++i 的深入理解
 * @version 1.0
 * @date 2022/9/19 17:14
 */
public class Test_i_plus_plus {
    static {
        int x = 5;
    }

    static int x, y;

    public static void main(String args[]) {
        x--;
        myMethod();
        System.out.println(x + y + ++x);
    }

    public static void myMethod() {
        y = x++ + ++x;
    }
}
